Integrand size = 33, antiderivative size = 101 \[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{a d}-\frac {2 (A b-a B) \sqrt {\cos (c+d x)} \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{a (a+b) d} \]
[Out]
Time = 0.22 (sec) , antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {4123, 3856, 2720, 3934, 2884} \[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\frac {2 A \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{a d}-\frac {2 (A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right )}{a d (a+b)} \]
[In]
[Out]
Rule 2720
Rule 2884
Rule 3856
Rule 3934
Rule 4123
Rubi steps \begin{align*} \text {integral}& = \frac {A \int \sqrt {\sec (c+d x)} \, dx}{a}-\frac {(A b-a B) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{a+b \sec (c+d x)} \, dx}{a} \\ & = \frac {\left (A \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{a}-\frac {\left ((A b-a B) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} (b+a \cos (c+d x))} \, dx}{a} \\ & = \frac {2 A \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{a d}-\frac {2 (A b-a B) \sqrt {\cos (c+d x)} \operatorname {EllipticPi}\left (\frac {2 a}{a+b},\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{a (a+b) d} \\ \end{align*}
Time = 1.57 (sec) , antiderivative size = 76, normalized size of antiderivative = 0.75 \[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\frac {2 \cot (c+d x) \left (a B \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\sec (c+d x)}\right ),-1\right )+(A b-a B) \operatorname {EllipticPi}\left (-\frac {b}{a},\arcsin \left (\sqrt {\sec (c+d x)}\right ),-1\right )\right ) \sqrt {-\tan ^2(c+d x)}}{a b d} \]
[In]
[Out]
Time = 6.53 (sec) , antiderivative size = 217, normalized size of antiderivative = 2.15
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1\right ) \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}+1}\, \left (A \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) a -A \operatorname {EllipticF}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right ) b +A \operatorname {EllipticPi}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 a}{a -b}, \sqrt {2}\right ) b -B \operatorname {EllipticPi}\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \frac {2 a}{a -b}, \sqrt {2}\right ) a \right )}{a \left (a -b \right ) \sqrt {-2 \sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}-1}\, d}\) | \(217\) |
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\int \frac {\left (A + B \sec {\left (c + d x \right )}\right ) \sqrt {\sec {\left (c + d x \right )}}}{a + b \sec {\left (c + d x \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\int { \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \sqrt {\sec \left (d x + c\right )}}{b \sec \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\int { \frac {{\left (B \sec \left (d x + c\right ) + A\right )} \sqrt {\sec \left (d x + c\right )}}{b \sec \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {\sec (c+d x)} (A+B \sec (c+d x))}{a+b \sec (c+d x)} \, dx=\int \frac {\left (A+\frac {B}{\cos \left (c+d\,x\right )}\right )\,\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}}{a+\frac {b}{\cos \left (c+d\,x\right )}} \,d x \]
[In]
[Out]